<?php

$arr = [
	'name'=>'学并思',
	'age'=>18,
	'qq'=>11366400
];

$json = json_encode($arr);

// $str = "xuebingsi";

file_put_contents('./db.txt',$json);



$data = file_get_contents('./db.txt');

var_dump($data);

var_dump(json_decode($data,true));